import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    history: [
      {
        name: 'htsyIndex',
        path: '/htsy/index',
        meta: {
          title: '后台首页'
        },
      },
    ]
  },
  mutations: {
    addHistory(state, data) {
      state.history.push(data)
    },
    updateHistory(state, data) {
      state.history = data
    }
  },
  actions: {
  },
  modules: {
  }
})
